package cn.ylhx.venue.mobileSearch.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ylhx.venue.mobileSearch.dao.SearchDao;
import cn.ylhx.venue.mobileSearch.entity.SearchArea;
import cn.ylhx.venue.mobileSearch.service.SearchService;
import cn.ylhx.venue.site.entity.Site_Message;
@Service
public class SearchServiceImpl implements SearchService {
	@Resource
	private SearchDao searchDao;

	@Override
	public List<Map<Integer, String>> seachCity() {
		// TODO Auto-generated method stub
		List<Map<Integer, String>> list=searchDao.findAllCity();
		return list;
	}

	@Override
	public List<Map<Integer, String>> findAllArea(Integer parent_id) {
		// TODO Auto-generated method stub
		List<Map<Integer, String>> list=searchDao.findAllArea(parent_id);
		return list;
	}

	@Override
	public List<Site_Message> searchSite(SearchArea searchArea) {
		// TODO Auto-generated method stub
		List<Site_Message> list=searchDao.searchSite(searchArea);
		return list;
	}


}
